Skip to content

Pin the Hex packages' versions at publish time - #45

Merged
Ughuuu merged 1 commit into
mainfrom
dependency-mismatch
Sep 27, 2026
Merged

Ughuuu merged 1 commit into
mainfrom
dependency-mismatch

Conversation

@Ughuuu

@Ughuuu Ughuuu commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Pin each Hex package's version in its mix.exs at publish time, so hosts no longer compile gamend_core/gamend_web/gamend_sdk/gamend_plugin_tools as whatever GAMEND_CONTENT_APP_VERSION or APP_VERSION holds (1.0.0, 1.0.26).

Each published mix.exs read its version from the compiling machine's
environment: GAMEND_CONTENT_APP_VERSION for gamend_core/gamend_web,
APP_VERSION for gamend_sdk/gamend_plugin_tools. A host Dockerfile that
exported GAMEND_CONTENT_APP_VERSION=1.0.0 compiled the engine as 1.0.0,
and the SDK pair, whose @Version was never stamped, compiled as 1.0.26
without APP_VERSION. Both failed a host's ">= 1.0.1266" requirement.

A step before the first publish now stamps @Version in all four files
and replaces the env lookup with @Version, failing if either edit does
not land. The repo's own Docker image and docs job are unchanged.
@Ughuuu
Ughuuu merged commit 534aace into main Sep 27, 2026
26 checks passed
@Ughuuu
Ughuuu deleted the dependency-mismatch branch September 27, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant